<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@include file="../common/common.jsp"%>
<c:if test="${empty session.name}">
	<c:redirect url="index.jsp"></c:redirect>


</c:if>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
</style>


<title>Select company</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	function changeCompany() {
		var getSelect = document.getElementById("companyName");
		var companyId = document.getElementById("getcompanyid");
		var len = getSelect.selectedIndex;
		var memberShipId = companyId.options[len].value;
		/* alert(memberShipId);
		 */
		window.location = "companyInfo.action?memberShipId=" + memberShipId; // companyinfo gives the details of selected comapny by forwording it to action class and attacing all the info in dispatcher. resp. objecct

	}
</script>
</head>

<body>

	<jsp:include page="../customer/customerHeader.jsp"></jsp:include>


	<div class="body2">
		<div class="main">
			<div class="marg_top wrapper">

				<div style="margin: 20px; padding: 20px;">


					<h4 class="commentformTitle">Check company Details..</h4>
					<div style="padding: 20px; font-size: 10px;">


						<table style="font-size: 13px;">
							<tbody>

								<tr>
									<td class="row"><label>company Name</label></td>
									<td class="row"><sx:autocompleter id="companyName"
											list="companyList" name="companyName"
											onchange="changeCompany()"></sx:autocompleter> <sx:autocompleter
											list="companyId" cssStyle="display : none;" id="getcompanyid"></sx:autocompleter>
									</td>

								</tr>

							</tbody>
						</table>
					</div>

				</div>
			</div>
		</div>
	</div>
	<jsp:include page="../customer/customerFooter.jsp"></jsp:include>
</body>
</html>
